﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Master/Default.master" AutoEventWireup="false" CodeBehind="NoticeList.aspx.cs" Inherits="Runda.EShop.SaaS.SysManage.NoticeList" %>
<%@ Register Assembly="AspNetPager" Namespace="Wuqi.Webdiyer" TagPrefix="webdiyer" %>
<%@ Register Src="~/UserControl/LeftMenu.ascx" TagPrefix="uc" TagName="LeftMenu" %>
<asp:Content ID="Content1" ContentPlaceHolderID="cphHeader" runat="server">
<script type="text/javascript">
    function OnNoticeAdd(URL) {
        $.ligerDialog.open({ url: URL, width: 800, height: 500, modal: true, isResize: true, title: '公告信息维护' });
        return false;
    }
    </script>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="cphLeft" runat="server">
    <uc:LeftMenu runat="server" ID="ucLeftMenu" TopMenuCode="Func5000" />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="cphMain" runat="server">
    <div class="i_tablebt_xian" style="margin: 10px 0px 0px 0px; width: 100%;">
        <span class="l"><img src="<%=ResolveUrl("~/images/ico/down_16x16.gif")%>" align="absmiddle" />公告列表</span>
    </div>
        <table border="0" cellspacing="0" cellpadding="0" class="i_tablebt_xian" style="margin: 10px 0 0 0;width: 728px;">
        <tr>
            <td><span class="banner6 r" style="margin: 3px 10px 3px 0;">
                <asp:LinkButton ID="lnkbtnAddUser" runat="server" OnClientClick="return OnNoticeAdd('NoticeAdd.aspx');">新增公告</asp:LinkButton></span></td>
        </tr>
    </table>
    <div class="clear"></div>
    <asp:GridView ID="gvNoticeList" runat="server" AutoGenerateColumns="false" 
        DataKeyNames="NoticeID" onrowdeleting="gvNoticeList_RowDeleting">
        <Columns>
         <asp:BoundField DataField="Title" HeaderText="标题" />
          <asp:BoundField DataField="CreatedName" HeaderText="创建者" />
          <asp:BoundField DataField="CreatedAt" HeaderText="创建时间" />
          <asp:TemplateField HeaderText="操作">
              <ItemTemplate>
                  <asp:LinkButton ID="lnkbtnEdit" runat="server" OnClientClick='<%# "return OnNoticeAdd(\"NoticeAdd.aspx?NoticeID="+Eval("NoticeID")+"\");" %>'>修改</asp:LinkButton>
                  <asp:LinkButton ID="lnkbtnDelete" runat="server" CommandName="delete">删除</asp:LinkButton>
              </ItemTemplate>
                <ItemStyle  Width="120px" CssClass="gridbtn"></ItemStyle>
          </asp:TemplateField>
        </Columns>            
        </asp:GridView>
        <webdiyer:AspNetPager ID="AspNetPager1" runat="server" CssClass="paginator" CurrentPageButtonClass="cpb" 
        CustomInfoHTML="第%CurrentPageIndex%页，共%PageCount%页，每页%PageSize%条" 
        ShowCustomInfoSection="Left" CustomInfoSectionWidth="180px" 
        NumericButtonCount="10"></webdiyer:AspNetPager>
    <asp:Button ID="btnQuery" runat="server" Text="查询" style="display:none;"/>
</asp:Content>
